Imports System.Runtime.Serialization

<DataContract()> _
Public Class ConceptRelationship

    <DataMember()> _
    Public ConceptRelationshipId As Guid = Guid.Empty
    <DataMember()> _
    Public ConceptRelationshipLSID As String = ""
    <DataMember()> _
    Public Concept1Id As Guid = Guid.Empty
    <DataMember()> _
    Public Concept2Id As Guid = Guid.Empty
    <DataMember()> _
    Public Relationship As String = ""
    <DataMember()> _
    Public RelationshipId As Guid = Guid.Empty
    <DataMember()> _
    Public HybridOrder As Integer = -1
    <DataMember()> _
    Public ChangeDate As DateTime = DateTime.MinValue
    <DataMember()> _
    Public ChangeUser As String = ""

    <System.ServiceModel.OperationContract()> _
    Public Shared Function CreateLSID(ByVal conceptRelationshipId As Guid) As String
        Dim lsid As String = ""
        If conceptRelationshipId <> Guid.Empty AndAlso conceptRelationshipId.ToString.Length > 0 Then
            lsid = "urn:lsid:" + NamesGlobal.LSIDAuthorityText + ":concept-relationship:" + conceptRelationshipId.ToString.ToLower()
        End If
        Return lsid
    End Function

End Class
